#include<bits/stdc++.h>
using namespace std;
inline int read()
{
	int x=0,f=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){x=(x<<3)+(x<<1)+(ch^48);ch=getchar();}
	return x*f;
}
int a[100005];
int h[100005];
int main()
{
	//freopen     
	//freopen
	//freopen
	//freopen
	//freopen
	//freopen luogu uid 772909
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n=read();
	for(int i=1;i<=n;i++)
	{
		a[i]=read();
		h[a[i]]++;
	}
	int ans=0;
	for(int i=1;i<=100000;i++)
	{
		ans=max(0,ans-h[i]);
		ans+=h[i];
	}
	cout<<ans;
	return 0;
}
